package com.xhwy.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserParam {
    /** 用户编号 */
    private Integer userId ;
    /** 用户名 */
    @Length(min = 3,max = 15)
    private String userName ;
    /** 密码 */
    @NotBlank
    private String password ;
    /** 昵称 */
    private String nickname ;
}
